package com.kimoge.spring6.validation.methodfour;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

/**
 * @author kimoge
 * @date 2025/8/30
 * @description
 */
@Configuration
@ComponentScan(value = "com.kimoge.spring6.validation.methodfour")
public class ValidatorConfig {
    @Bean
    public MethodValidationPostProcessor getValidator() {
        return new MethodValidationPostProcessor();
    }
}
